<template>
  <view @click="mySearch" class="my-search" :style="{backgroundColor:bgc}">
    <view class="searchBox" :style="{ borderRadius: `${radius}rpx` }">
      <uni-icons type="search" size="20"></uni-icons>搜索
    </view>
  </view>
</template>

<script>
  export default {
    name: "my-search",
    props: {
      bgc: {
        type: String,
        default: '#c00000'
      },
      radius: {
        type: Number,
        default: 60
      }
    },
    data() {
      return {

      };
    },
    methods: {
      mySearch() {
        this.$emit('click')
      }
    }
  }
</script>

<style lang="scss">
  .my-search {

    padding: 20rpx;

    .searchBox {
      height: 70rpx;
      line-height: 70rpx;
      text-align: center;
      background-color: #fff;

    }
  }
</style>
